package com.lzs.bootsafety.common.util.easyexcel.enums;

public enum StatusEnum {

    NORMAL("0","正常"),BEAR("1","禁用");
    private String label;
    private String value;

    StatusEnum(String label, String value) {
        this.label = label;
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public String getValue() {
        return value;
    }
    public static StatusEnum of(String param){
        for (StatusEnum temp:StatusEnum.values()){
            if (param.equals(temp.getLabel()) || param.equals(temp.getValue())){
                return temp;
            }
        }
        return null;
    }
}
